﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace KCurveAPI
{
  [StructLayout(LayoutKind.Sequential, Pack = 1)]
  public struct IStruct
  {
    const int LEN = 255;
    // windcode
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] Windcode;

    // 简称
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] ShortName;

    // 当前时间
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] CurrentDate;

    // 当前价格
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] CurrentPrice;

    // 涨跌
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] Swing;

    // 涨跌幅%
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = LEN)]
    public byte[] SwingPercent;

    // 涨跌标识
    public int IsDown;

    // 昨日收盘价
    public double YestodayPrice;
   }
}
